#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>


#define MAX_SIZE 10
int arr[MAX_SIZE];


void init() {
    for (int i = 0; i < MAX_SIZE; i++) {
        arr[i] = 0;
    }
}

void print() {
    printf("Array elements: ");
    for (int i = 0; i < MAX_SIZE; i++) {
        arr[i]=i;
        printf("%d ", arr[i]);
    }
    printf("\n");
}


void reverse() {
    int temp;
    for (int i = 0; i < MAX_SIZE / 2; i++) {
        temp = arr[i];
        arr[i] = arr[MAX_SIZE - 1 - i];
        arr[MAX_SIZE - 1 - i] = temp;
    }
}

int main() {
    
    init();

    printf("Initial ");
    print();
    reverse();
    printf("After reverse ");
    for (int i = 0; i < MAX_SIZE; i++)
    {
        printf("%d ",arr[i]);
   }

    return 0;
}
